package com.tfos.study.mvc.url.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 类功能说明：SpringBoot2.x之自定义URL路径匹配规则测试控制器 <br/>
 * 公司名称：TF（腾飞）开源 <br/>
 * 作者：luorongxi <br/>
 */
@RestController
public class TestMvcUrlController {

    /**
     * produces="application/json;charset=UTF-8":解决继承WebMvcConfigurationSupport类时中文乱码的问题.
     */
    @ResponseBody
    @GetMapping(value="/url",produces="application/json;charset=UTF-8")
    public String showMsg() {
        return "【TF（腾飞）开源】SpringBoot2.x之整合SpringMVC自定义URL路径匹配规则!";
    }
}
